package factory.abstract_factory;

import factory.Circle;
import factory.Rectangle;
import factory.Shape;
import factory.Square;

public class ShapeFactory extends AbstractFactory {
    @Override
    public Shape getShape(String shapeType) {
        if("CIRCLE".equals(shapeType)){
            return new Circle();
        }else if("RECTANGLE".equals(shapeType)){
            return new Rectangle();
        }else if("SQUARE".equals(shapeType)){
            return new Square();
        }
        return null;
    }

    @Override
    public Color getColor(String color) {
        return null;
    }
}
